<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>星花雪月</title>
  <link th:href="@{/blogstyle/images/me.jpg}" rel="icon" type="image/x-ico">
  <link rel="stylesheet" th:href="@{https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css}">
  <link rel="stylesheet" th:href="@{/blogstyle/css/me.css}">
</head>
<body>

<div th:replace="~{common/blogcommon::topbar}"></div>

<!--顶部图片-->
<div class="m-bg-type_outer" style="width: 100%;height: 40%">
  <img th:src="@{/blogstyle/images/typebg.jpg}" alt="" class="ui m-bg image" style="width: 100%;height: 100%">
  <div class="m-bg-class_cover">
    <div class="ui container" style="position: relative ;bottom: -540px;">
      <div class="m-font-size-title m-right-bottom" align="center" style="font-family:'STXingkai'">文章分类</div>
      <div class="m-font-size-text-init-title m-margin-top" align="center">记忆是一种相聚的方式，放下是一种自由的形式。不必悲伤，不必忧愁，邂逅的回忆都是美好的故事</div>
    </div>
  </div>
</div>
<!--中间内容-->
<div  class="m-margin- animated fadeIn">
  <div class="ui container">
    <div class="ui segment m-padded-tb-large m-opacity">
      <div class="ui container" align="center">
        <div class="ui labeled button m-margin-tb-tiny" th:each="type:${types}">
          <a th:href="@{/blog/toTypes}+${type.getId()}" class="ui basic  button" th:text="${type.getName()}"></a>
          <div class="ui basic  left pointing label" th:text="${type.getNumber()}"></div>
        </div>
      </div>
    </div>

    <div class="ui top attached teal m-opacity segment">
      <div class="ui padded vertical segment m-padded-tb-large">
        <div class="ui middle aligned mobile reversed stackable grid" >
          <div class="ui padded segment m-padded-tb-large m-opacity" th:each="article:${articles}">
            <div class="ui large aligned mobile reversed stackable grid">
              <!--博文信息-->
              <div class="eleven wide column ">
                <h3 class="ui header" >
                  <a id="name" th:href="@{/blog/toarticle}+${article.getId()}" target="_blank" class="m-black" th:text="${article.getTitle()}"></a>
                </h3>
                <p class="m-text m-margin-top-max" th:text="${article.getInfo()}"></p>
                <div class="ui m-margin-top-max grid">
                  <div class="eleven wide column">
                    <div class="ui mini horizontal link list">
                      <div class="item">
                        <img th:src="@{/blogstyle/images/me.jpg}" alt="" class="ui avatar image">
                        <div class="content"><a th:href="@{/blog/toabout}" target="_blank" class="header" >星花雪月</a></div>
                      </div>
                      <div class="item">
                        <i class="calendar icon"></i><span th:text="${#dates.format(article.getDate(),'yyyy-MM-dd')}"></span>
                      </div>
                      <div class="item">
                        <i class="eye icon"></i> <span th:text="${article.getHits()}"></span>
                      </div>
                      <div class="item">
                        <i class="comment outline icon"></i> <span th:text="${article.getCommentsNum()}"></span>
                      </div>
                    </div>
                  </div>
                  <div class="right aligned five wide column">
                    <a th:href="@{/blog/toTypes}+${article.getTid()}" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${article.getType()}"></a>
                  </div>
                </div>
              </div>
              <!--博文图片-->
              <div class="five wide column">
                <a th:href="@{/blog/toarticle}+${article.getId()}" target="_blank">
                  <img th:src="@{/blogstyle/images/backimg1.jpg}" alt="" class="ui rounded image">
                </a>
              </div>

            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<br>
<br>
<!--底部栏-->
<div th:replace="~{common/blogcommon::footbar(articlesNum=${articlesNum},commentsNum=${commentsNum},hits=${hits})}"></div>


<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>

<div th:replace="~{common/blogcommon::javascript}"></div>
<script>

    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });

</script>
</body>
</html>
